import App from './App'
//条件编译语法
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

// 引入store
import store from './store'

import GoodsItem from './components/goods-item.vue'
Vue.component('goods-item',GoodsItem)


import CustomNav from './components/custom-nav.vue'
Vue.component('custom-nav',CustomNav)

import CartPop from './components/cart-pop.vue'
Vue.component('cart-pop',CartPop)

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif